package com.chenfan.mcn.clients.datastore;

import com.chenfan.common.config.Constant;
import com.chenfan.mcn.clients.datastore.model.DataStoreResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: xuxianbei
 * Date: 2021/8/5
 * Time: 16:12
 * Version:V1.0
 */
@FeignClient(value = "mini-magic")
public interface MiniMagicRemoteService {

    /**
     * 获取MCN粉丝数
     * @param platformId
     * @param platformUserId
     * @param appkey
     * @param token
     * @return
     */
    @GetMapping(value = "/idc-atom-magic/dc_mcn_fans")
    DataStoreResponse getDcMcnFans(@RequestParam Integer platformId, @RequestParam String platformUserId, @RequestHeader("app_key") String appkey,
                                   @RequestHeader(Constant.AUTHORIZATION_TOKEN) String token);

    /**
     * 获取MCN红人生态
     * @param platformId
     * @param platformUserId
     * @param appkey
     * @param token
     * @return
     */
    @GetMapping(value = "/idc-atom-magic/dc_mcn_red_quota")
    DataStoreResponse getDcMcnQuota(@RequestParam Integer platformId, @RequestParam String platformUserId, @RequestHeader("app_key") String appkey,
                                    @RequestHeader(Constant.AUTHORIZATION_TOKEN) String token);
}
